package com.gxa.uhome.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.models.auth.In;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;
import java.util.List;

/**
 * @author: Laiguowei
 * @date: 16:08 2021/6/5
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("物流订单实体类")
public class Order {
    @ApiModelProperty("物流订单id")
    private Integer id;

    @ApiModelProperty("物流订单编号")
    private String no;

    @ApiModelProperty("用户订单id")
    private Integer userOrderId;

    @ApiModelProperty("操作员id")
    private Integer operatorId;

    @ApiModelProperty("时效产品类型(1常温/2生")
    private String expireProduct;

    @ApiModelProperty("箱数")
    private Integer boxCount;

    @ApiModelProperty("金额")
    private Double price;

    @ApiModelProperty("重量")
    private Double weight;

    @ApiModelProperty("物料id")
    private Integer materialId;
    private List<Material> material;

    @ApiModelProperty("物料数量")
    private Integer materialCount;


    @ApiModelProperty("配送员id（姓名）")
    private Integer shipperId;
    private Shipper shipper;

    @ApiModelProperty("站点派件时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Timestamp stationSendTime;

    @ApiModelProperty("配送员配送时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Timestamp shipperSendTime;

    @ApiModelProperty("配送完成时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Timestamp shipperDoneTime;

    @ApiModelProperty("订单状态0待配送，1发货，2待取货，3已提货，4配送成功，5配送失败")
    private Integer status;

    @ApiModelProperty("审核情况")
    private String remark;
    
    @ApiModelProperty("订单详情")
    private List<OrderDetail> orderDetails;
}
